package com.item.mapper;


import com.item.domain.TbUser;
import com.item.po.TbUserPo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface TbUserMapper extends Mapper<TbUser> {

    List<TbUserPo> findAll(TbUser tbUser);

    TbUser getUserId(@Param("id") int id);

    TbUser selectByPrimaryKeyPhone(@Param("phone") String phone);

    TbUserPo selectFindById(@Param("id") int id);

    List<TbUser> selectAllUserId(@Param("userId") int userId);

    List<TbUser> idsArray(@Param("stringList") List<String> stringList);

    List<TbUser> selectUserName(TbUser username);

    List<TbUserPo> findAllList(TbUser tbUser);

    int getUserCountFensi(@Param("id") int id);

    int getUserCountGuanZhu(@Param("id") int id);

    int getUserCountXiHuan(@Param("id") int id);

    List<Integer> tbUserBeauty(@Param("id") int id);


}